package com.grass.cropTradingCenter.common;

public class BusinessException extends RuntimeException {
    private int code;

    public BusinessException(ResultCode errorCode){
        super(errorCode.getMsg());
        this.code = errorCode.getCode();
    }

    public int getCode() {
        return code;
    }

    public void setCode(int code) {
        this.code = code;
    }
}
